home *** CD-ROM | disk | FTP | other *** search
- !!Script
- // Copyright ⌐ 1997-2000 - Modelworks Software
-
- // Insert script helper for:
-
- /**
- @Object: WorkspaceTab
- @Method: closeItem(path) close (collaspe) the workspace tab item
- for this path. Path must be a '/' separated list of
- names (e.g., Tools/Project/addFiles).
- @Syntax: closeItem(path)
- @Summary: closeItem - close the workspace tab item
- */
-
- function DoCommand()
- {
- var editor = getActiveEditor();
- if (editor)
- {
- var selection = editor.getSelection();
- editor.replace("tab.closeItem(path)", selection);
- editor.setActive("Insert closeItem");
- }
- }
-
- !!/Script
-